package com.rescue.mapper;

import com.rescue.forum.entity.RescueFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RescueFileMapper {
    /**
     * 批量添加文件
     * @param list
     */
    void saveBatch(List<RescueFile> list);
    @Select("select file_path from rescue_file where rescue_record_id = #{rescueRecordId} and type = #{i}")
    List<String> getByRecordId(Integer rescueRecordId, int i);
}
